<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function storArr(arr){
            const odd=arr.filter(n=>n%2).sort()
            return arr.map(n=>n%2?odd.shift():n)
        }
        console.log(storArr([9,8,7,6,5,4,3,2,1]))
    </script>
</body>
</html>